package com.woniuxy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.entity.Region;
import com.woniuxy.mapper.RegionMapper;
import com.woniuxy.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements RegionService {
    @Autowired
    private RegionMapper regionMapper;
    @Override
    public List<Region> getArea() {
        return regionMapper.getArea();
    }

    @Override
    public List<Region> getAll(Region region) {
        return regionMapper.getAll(region);
    }

    @Override
    public String getRegionById(int id) {
        return regionMapper.getRegionById(id);
    }

    /*@Override
    public List<Region> getByType(int type) {
        return regionMapper.getByType(type);
    }*/
}
